<div>
    <form class="form-horizontal bv-form"  role="form"  id="updateForm">
        <input type="hidden" name="h_id" value="{$res.h_id}">
        <fieldset>
            <legend>基本信息</legend>
            <div class="form-group">
                <label class="col-sm-3 control-label">房屋名称</label>
                <div class="col-sm-5">
                    <input type="text"  class="form-control" id="h_name" name="h_name" value="{$res.h_name}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label yl">缩略图</label>
                <div class="col-sm-5">
                    <a href="javascript:;" class="file">选择文件
                        <input type="file" name="fileImg" id="file2" onchange="bbbb(this);">
                    </a>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label ">预览图片</label>
                <div class="col-sm-3 file1_1" id="androimg_file" style="float:left">
                    <img src="{$res.h_image}" height="150" width="150"/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">房屋总价</label>
                <div class="col-sm-5">
                    <input type="text"  value="{$res.h_price}" class="form-control" id="h_price" name="h_price" placeholder="例如：￥2,800,000">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">收益周期</label>
                <div class="col-sm-5">
                    <input type="text"  value="{$res.h_yield_tras}" class="form-control" id="h_yield_tras" name="h_yield_tras" placeholder="例如：2年1个月">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">会员权益</label>
                <div class="col-sm-5">
                    <input type="text"  value="{$res.h_auth_equity}" class="form-control" id="h_auth_equity" name="h_auth_equity" placeholder="例如：13%">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">预期收益</label>
                <div class="col-sm-5">
                    <input type="text"  value="{$res.h_prospective}" class="form-control" id="h_prospective" name="h_prospective" placeholder="例如：13%">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">租金收益</label>
                <div class="col-sm-5">
                    <input type="text"  value="{$res.h_rental}" class="form-control" id="h_rental" name="h_rental" placeholder="例如：6.9%">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">资产收益</label>
                <div class="col-sm-5">
                    <input type="text"  value="{$res.h_asset}" class="form-control" id="h_asset" name="h_asset" placeholder="例如：6.9%">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">项目类型</label>
                <div class="col-sm-5">
                    <select name="h_project_type" id="h_project_type" class="form-control">
                        {volist name='project_type' id='val'}
                        <option value="{$val.project_id}" {$res.h_project_type==$val.project_id?'selected':''}>{$val.project_type_name}</option>
                        {/volist}
                    </select>
                </div>
            </div>

        </fieldset>
    </form>

</div>

<script type="text/javascript">
    function bbbb(file) {
        var prevDiv = document.getElementById('androimg_file');
        if (file.files && file.files[0]) {
            var reader = new FileReader();
            reader.onload = function(evt){
                prevDiv.innerHTML = '<img src="' + evt.target.result + '" height="150" width="150"/>';
            }
            reader.readAsDataURL(file.files[0]);
        } else {
            prevDiv.innerHTML = '<div class="img" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src=\'' + file.value + '\'"></div>';
        }
    }
</script>